package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketTopic;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Meltedicecream
 * @since 2023/06/21 20:30
 */
public interface AdminTopicService {
    List<MarketTopic> list(Integer page, Integer limit, String title, String subtitle, String sort, String order);

    MarketTopic create(String title, String subtitle, BigDecimal price, String readCount, String picUrl, Integer[] goods, String content);

    void delete(Integer id);

    MarketTopic update(Integer id,String title, String subtitle, BigDecimal price, String readCount, String picUrl, Integer[] goods, String content, Integer sortOrder, LocalDateTime addTime, LocalDateTime updateTime);

    MarketTopic read(Integer id);
}
